package org.goldenport.g3.events.filestore

import org.goldenport.g3.{G3Event, G3Message}
import org.goldenport.g3.events._

/**
 * derived from g3.events.CrudEvents
 * 
 * @since   May. 23, 2010
 * @version Sep. 24, 2010
 * @author  ASAMI, Tomoharu
 */
/**
 * Creates a container resource.
 */
class FileCreated(uri: String) extends Posted(uri)

/**
 * Reads whole data from the container resource.
 */
class FileReaded(uri: String, content: AnyRef) extends Getted(uri, Some(content))

/**
 * Writes whole data into the container resource.
 */
class FileWrited(uri: String) extends Putted(uri)

/**
 * Removed a entry into the container resource.
 */
class FileRemoved(uri: String, source: G3Message, result: Option[Any]) extends Deleted(uri)
